import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path: '/',
        redirect: '/recordWeight'
    },
    {
        path: "/login",
        name: "Login",
        component: () => import("@/views/login.vue")
    },
    {
        path: '/recordWeight',
        name: "RecordWeight",
        component: () => import("@/views/recordWeight.vue")
    },
    {
        path: '/recordDiet',
        name: "RecordDiet",
        component: () => import("@/views/recordDiet.vue")
    },
    {
        path: '/recordSport',
        name: "RecordSport",
        component: () => import("@/views/recordSport.vue")
    },
    {
        path: '/my',
        name: 'My',
        component: () => import("@/views/my.vue")
    },
    {
        path: '/userDetail',
        name: 'UserDetail',
        component: () => import("@/views/userDetail.vue")
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router;